<div id="homepageFeaturedProduct">
            	<?php query_posts('post_type=product&meta_key=featuredproduct&meta_value=featured&posts_per_page=1');  ?>
					<?php if (have_posts()) { ?>
						<?php while (have_posts()) : the_post(); ?>
                        
                        	<?php
								$featuredproductsku = get_post_custom($post->ID);
								$fprodsku = $featuredproductsku['_sku'];
								foreach ( $fprodsku as $fprodsku );
								$featuredproductlistprice = get_post_custom($post->ID);
								$fprodlistprice = $featuredproductlistprice['_regular_price'];
								foreach ( $fprodlistprice as $fprodlistprice );
								$featuredproductprice = get_post_custom($post->ID);
								$fprodprice = $featuredproductprice['_sale_price'];
								foreach ( $fprodprice as $fprodprice );
							?>
                        	
                            <a class="featuredproductimage" href="<?php the_permalink(); ?>"><?php the_post_thumbnail(); ?></a>
                            <style>
								a.featuredproductimage img { float:left; }
							</style>
                            <?php 
                                	$fprodsavings = (($fprodlistprice - $fprodprice) / $fprodlistprice);
									$showfprodsavings = $fprodsavings * 100;
								?>
                            <table cellpadding="0" cellspacing="0" width="175" style="float:right;margin:0px;padding:0px;">
                            	<tr>
                                	<td height="170" align="center">
                            			<p style="margin-bottom:10px;display:inline-block;"><?php the_excerpt(); ?></p>
                            		</td>
								</tr>
                                <tr>
                                	<td class="featuredorderbutton">
										<p
                                        	<?php if (is_IE() ) { ?>
                                            	style="padding-top:10px;"
                                            <?php } ?>
                                        ><a class="button" href="<?php the_permalink(); ?>">View Details</a></p>
                            		</td>
								</tr>
                            </table>
                        	<h4 style="font-size:12px;"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h4>
                        	<ul style="height:30px;margin-top:5px;">
                            	<li class="first featuredprodprice" style="font-size:18px;font-weight:bold;color:#263692;vertical-align:top;">$<?php echo $fprodprice; ?></li>
                                <li class="featuredprodprice"><div style="margin-top:0px;font-size:12px;height:14px;line-height:14px;padding-left:10px;padding-right:10px;padding-top:5px;padding-bottom:5px;background:#263692;text-align:center;color:#ffffff;font-weight:bold;float:left;">Save <?php echo round($showfprodsavings); ?>% Today</div></li>
                            </ul>
                        
						<?php endwhile ?>
					<?php } ?>
            </div>